from chapter5.regular_test.re_test_patterns import test_patterns

if __name__ == '__main__':
    text = 'A prime #123 example!'

    patterns = [
        (r"\d+", "数字字符 0-9 的串"),
        (r"\D+", "非数字字符 0-9 的串"),
        (r"\s+", "空白字符的串"),
        (r"\S+", "非空白字符的串"),
        (r"\w+", "字母表范围的词"),
        (r"\W+", "非字母表范围词"),

    ]

    test_patterns(text=text, patterns=patterns)
